import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import index from '@/components/index'
import shui from '@/components/shui'
import Register from '@/components/Register'
import login from '@/components/login'
import weibo from '@/components/weibo'
import shangpin from '@/components/shangpin'
import detail from '@/components/detail'
import cart from '@/components/cart'




import addcate from '@/components/manager/addcate'
import deng from '@/components/manager/deng'
import showke from '@/components/manager/showke'
import shouxue from '@/components/manager/shouxue'
import gou from '@/components/manager/gou'
import Showuser from '@/components/manager/Showuser'
import Showgoods from '@/components/manager/Showgoods'
import UserLogin from '@/components/manager/UserLogin'
import GouWu from '@/components/manager/GouWu'


Vue.use(Router)

export default new Router({
  mode:'history',
  routes: [
    {
      path: '/',
      name: 'index',
      component: index
    },
    {
      path: '/shui',
      name: 'shui',
      component: shui
    },
    {
      path: '/Register',
      name: 'Register',
      component: Register
    },
    {
      path: '/login',
      name: 'login',
      component: login
    },
    {
      path: '/weibo',
      name: 'weibo',
      component: weibo
    },
    {
      path: '/addcate',
      name: 'addcate',
      component: addcate
    },
    {
      path: '/deng',
      name: 'deng',
      component: deng
    },
    {
      path: '/showke',
      name: 'showke',
      component: showke
    },
    {
      path: '/shouxue',
      name: 'shouxue',
      component: shouxue
    },
    {
      path: '/gou',
      name: 'gou',
      component: gou
    },
    {
      path: '/Showuser',
      name: 'Showuser',
      component: Showuser
    },
    {
      path: '/Showgoods',
      name: 'Showgoods',
      component: Showgoods
    },
    {
      path: '/UserLogin',
      name: 'UserLogin',
      component: UserLogin
    },
    {
      path: '/GouWu',
      name: 'GouWu',
      component: GouWu
    },
    {
      path: '/shangpin',
      name: 'shangpin',
      component: shangpin
    },
    {
      path: '/detail/:gid',
      name: 'detail',
      component: detail
    },
    {
      path: '/cart',
      name: 'cart',
      component: cart
    },
  ]
})
